<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('cart/index')}">购物车</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('cart/index')}">
        商品名称:
        <input type="text" class="form-control" name="name" value="{:input('request.name/s','')}" placeholder="请输入商品名称">
        用户昵称:
        <input type="text" class="form-control" name="nickname" value="{:input('request.nickname/s','')}" placeholder="请输入用户昵称">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('cart/index')}">清空</a>
    </form>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>ID</th>
                <th>用户昵称</th>
                <th>商品名称</th>
                <th>所属店铺</th>
                <th>限时抢购</th>
                <th>添加时间</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.nickname}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.shopname}</td>
                    <td>{$vo['activity_id'] ? '是' : '否'}</td>
                    <td>{$vo.addtime}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page|default=''}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>